<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="EventViewDlg" widgetVar="EventViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.ViewEventTitle}">
            <h:form id="EventViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{eventController.selected != null}">
                        <h:outputText value="#{bundle.ViewEventLabel_id}"/>
                        <h:outputText value="#{eventController.selected.id}" title="#{bundle.ViewEventTitle_id}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_name}"/>
                        <h:outputText value="#{eventController.selected.name}" title="#{bundle.ViewEventTitle_name}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_introduction}"/>
                        <h:outputText value="#{eventController.selected.introduction}" title="#{bundle.ViewEventTitle_introduction}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_conductTime}"/>
                        <h:outputText value="#{eventController.selected.conductTime}" title="#{bundle.ViewEventTitle_conductTime}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewEventLabel_createdDate}"/>
                        <h:outputText value="#{eventController.selected.createdDate}" title="#{bundle.ViewEventTitle_createdDate}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewEventLabel_fee}"/>
                        <h:outputText value="#{eventController.selected.fee}" title="#{bundle.ViewEventTitle_fee}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_speaker}"/>
                        <h:outputText value="#{eventController.selected.speaker}" title="#{bundle.ViewEventTitle_speaker}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_guest}"/>
                        <h:outputText value="#{eventController.selected.guest}" title="#{bundle.ViewEventTitle_guest}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_prize}"/>
                        <h:outputText value="#{eventController.selected.prize}" title="#{bundle.ViewEventTitle_prize}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_address}"/>
                        <h:outputText value="#{eventController.selected.address}" title="#{bundle.ViewEventTitle_address}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_procedure}"/>
                        <h:outputText value="#{eventController.selected.procedure}" title="#{bundle.ViewEventTitle_procedure}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_term}"/>
                        <h:outputText value="#{eventController.selected.term}" title="#{bundle.ViewEventTitle_term}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_criteria}"/>
                        <h:outputText value="#{eventController.selected.criteria}" title="#{bundle.ViewEventTitle_criteria}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_activityId}"/>
                        <h:outputText value="#{eventController.selected.activityId}" title="#{bundle.ViewEventTitle_activityId}"/>
                        <h:outputText value="#{bundle.ViewEventLabel_activity}"/>
                        <h:outputText value="#{eventController.selected.activity}" title="#{bundle.ViewEventTitle_activity}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="EventViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
